<template>
  <div class="product">
    <h3>标题：{{ title }}</h3>
    <p>价格: {{ price }}元一根</p>
    <p>描述:{{ desc }} <button>砍一刀</button></p>
  </div>
</template>

<script>
export default {
  name: 'MyProduct',
  //接收父组件传值
  props: ['price', 'title', 'desc'],
  methods: {},
}
</script>

<style scoped></style>
